package com.bins.dentist.clinic.model.dto;

import java.io.Serializable;

public class PageDto implements Serializable {

    private static final long serialVersionUID = 8518749555147268559L;

    private static Integer DEFAULT_PAGE_SIZE = 10;
    private static Integer DEFAULT_PAGE_NUM = 1;

    private Integer pageNum;
    private Integer pageSize;

    public Integer getPageNum() {
        if (this.pageSize == null || this.pageSize == 0) {
            return DEFAULT_PAGE_NUM;
        }
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        if (this.pageSize == null || this.pageSize == 0) {
            return DEFAULT_PAGE_SIZE;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

}
